﻿using System;
using UnityEngine;

namespace H
{
	// Token: 0x02000223 RID: 547
	public class H_InputBase : MonoBehaviour
	{
		// Token: 0x17000179 RID: 377
		// (get) Token: 0x06000EBF RID: 3775 RVA: 0x0005CA24 File Offset: 0x0005AC24
		// (set) Token: 0x06000EC0 RID: 3776 RVA: 0x0005CA2C File Offset: 0x0005AC2C
		public float Pose
		{
			get
			{
				return this.pose;
			}
			set
			{
				this.pose = value;
			}
		}

		// Token: 0x1700017A RID: 378
		// (get) Token: 0x06000EC1 RID: 3777 RVA: 0x0005CA38 File Offset: 0x0005AC38
		// (set) Token: 0x06000EC2 RID: 3778 RVA: 0x0005CA44 File Offset: 0x0005AC44
		public float Stroke
		{
			get
			{
				return -this.stroke;
			}
			set
			{
				this.stroke = -value;
			}
		}

		// Token: 0x1700017B RID: 379
		// (get) Token: 0x06000EC3 RID: 3779 RVA: 0x0005CA50 File Offset: 0x0005AC50
		// (set) Token: 0x06000EC4 RID: 3780 RVA: 0x0005CA58 File Offset: 0x0005AC58
		public float Speed
		{
			get
			{
				return this.speed;
			}
			set
			{
				this.speed = value;
			}
		}

		// Token: 0x06000EC5 RID: 3781 RVA: 0x0005CA64 File Offset: 0x0005AC64
		public virtual void SetMembers(H_Members members)
		{
			this.members = members;
			this.state = members.StateMgr.NowStateID;
		}

		// Token: 0x06000EC6 RID: 3782 RVA: 0x0005CA80 File Offset: 0x0005AC80
		public virtual void Update()
		{
			if (this.members == null)
			{
				return;
			}
			if (this.state != this.members.StateMgr.NowStateID)
			{
				this.ChangeState(this.members.StateMgr.NowStateID);
			}
		}

		// Token: 0x06000EC7 RID: 3783 RVA: 0x0005CAC0 File Offset: 0x0005ACC0
		protected virtual void ChangeState(H_STATE state)
		{
			this.state = state;
		}

		// Token: 0x04000F81 RID: 3969
		protected H_STATE state;

		// Token: 0x04000F82 RID: 3970
		protected float pose;

		// Token: 0x04000F83 RID: 3971
		protected float stroke;

		// Token: 0x04000F84 RID: 3972
		protected float speed;

		// Token: 0x04000F85 RID: 3973
		protected H_Members members;
	}
}
